package com.arpa.wms.mapper;

import com.arpa.wms.domain.dto.CountingItemDTO;
import com.arpa.wms.domain.entity.CountingItem;
import com.arpa.wms.domain.vo.CountingItemVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * 盘点单明细 Mapper 接口
 * @author jinss
 * @date 2020-08-28 11:17:07
 **/
public interface CountingItemMapper extends BaseMapper<CountingItem> {

    List<CountingItemVO> queryList(CountingItemDTO countingItemDTO);

    /**
     * 创建盘点明细
     * @param countingCode 盘点单号
     * @param userCode 操作人code
     * @param userName 操作人姓名
     * @param warehouseCode 仓库标识
     * @param groupCode 机构标识
     * @param location 库位
     * @param shipmentCode 货主标识
     * @param actionNum 动线号
     */
    void insertBatch(String countingCode, String userCode, String userName,String warehouseCode,
                     String groupCode,String location,String shipmentCode,Long actionNum);

    CountingItemVO queryListSum(CountingItemDTO countingItemDTO);
}
